package com.bobi.tfca;

import com.bobi.tfca.netty.NettyServerBootstrap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 李文发
 * @date 2024/4/2
 */
@Slf4j
@EnableScheduling
@SpringBootApplication
public class TfcaApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(TfcaApplication.class, args);
        NettyServerBootstrap serverBootstrap = context.getBean(NettyServerBootstrap.class);
        serverBootstrap.bind();
        log.info("running...");
    }
}
